-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate readandwrite
and add docs for Pipe
#24718
Conversation
base/stream.jl
Outdated
``` | ||
julia> err = Pipe() | ||
|
||
# After this `p` will be initialized and you may read `foo`'s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is p
here?
base/stream.jl
Outdated
|
||
# After this `p` will be initialized and you may read `foo`'s | ||
# stderr from the `err` pipe. | ||
julia> spawn(pipeline(pipeline(`foo`, stderr=err), `cat`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command is missing a closing )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Personally I think we could also include an example with this syntax:
spawn(
cat
, stdin, stdout, stderr)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 4-argument spawn()
appears to be undocumented though.
Bump. Needs rebasing and doc string editing, and then should probably be merged for 1.0. |
baa9ff3
to
6a11b22
Compare
There was a remaining todo in the code to deprecate this function. Do so.
It was brought up on discourse that this function doesn't have any docs.
6a11b22
to
1755a3c
Compare
@Keno, Also, the apparent need to In fact, the docstring for |
Came up here: https://discourse.julialang.org/t/document-process-interaction-with-stdin-stout-stderr/7251/3.
Also document what
Pipe()
does, though note that this API may have to change due to #24717.